package com.unitd.modules.configcenter.entity;

import com.unitd.comm.entity.DataEntity;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @desc profile管理信息表表对应实体对象
 * @filename Profiles.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date  2018-01-30
 */
@Table(name = "profiles")
public class Profiles extends DataEntity {

	/** profile标识 */
	@Column(name = "name")
	private String name;
	/** profile名称 */
	@Column(name = "alias")
	private String alias;
	/** 是否默认 */
	@Column(name = "is_default")
	private Boolean isDefault;
	/** 是否启用 */
	@Column(name = "enabled")
	private Boolean enabled;
	/* ************************** 与数据库字段不直接关联而是对应外键对象或数据处理的字段 ************************** */

	public Profiles() {
		super();
	}

	public Profiles(String id){
		super(id);
	}

	public Profiles(String id, String name, String alias, Boolean isDefault, Boolean enabled){
		this.id = id;
		this.name = name;
		this.alias = alias;
		this.isDefault = isDefault;
		this.enabled = enabled;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAlias() {
		return alias;
	}
	public void setAlias(String alias) {
		this.alias = alias;
	}
	public Boolean getIsDefault() {
		return isDefault;
	}
	public void setIsDefault(Boolean isDefault) {
		this.isDefault = isDefault;
	}
	public Boolean getEnabled() {
		return enabled;
	}
	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}
}